


import { createWebHistory, createRouter } from "vue-router";

const routes = [
  // 手动切换路由展示页面
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: () => import('../views/Home.vue')  // 首页组件
  }, {
    path: '/001',
    component: () => import('../views/001/index.vue')  
  }, {
    path: '/001copy',
    component: () => import('../views/001copy/index.vue')  
  },{
    path: '/002',
    component: () => import('../views/002/index.vue')  
  }, {
    path: '/003',
    component: () => import('../views/003/index.vue')  
   
  }, {
    path: '/004',
    component: () => import('../views/004/index.vue')  
  }
]

const router = createRouter({
  history: createWebHistory(), // 路由类型
  routes // short for `routes: routes`
})


export default router
